<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .my-div {
            /* 距离顶部 */
            margin-top: 100px;
            /* 距离左边 */
            margin-left: 100px;
            width: 200px;
            height: 100px;
            background-color: red;
            /* transform 变化，rotate 顺时针旋转60度 */
            transform: rotate(60deg);
        }
        
        img {
            margin-left: 300px;
            margin-top: 100px;
            border: 1px solid blue;
            /* transition 过渡 ，在1s的时间内匀速（线性）变化*/
            transition: 1s linear;
        }
        
        img:hover {
            /* transform 变化， scale 缩放 */
            transform: scale(2);
        }
    </style>
</head>

<body>
    <div class="my-div">
        html programming
    </div>

    <div>
        <img src="images/superman.png" alt="" width="300px" height="300px">
    </div>
</body>

</html>